package caiziyou.com.designpattern.commond;

public class TvOffCommond implements Commond {

	private TvReceiver tv;

	public TvOffCommond(TvReceiver tv) {
		super();
		this.tv = tv;
	}

	@Override
	public void execute() {
		tv.off();
	}

	@Override
	public void undo() {
		tv.on();
	}

}
